package cn.kgc.ubagnet.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Buyer {
    private Integer userid;

    private String phone;

    private String password;

    private Integer vip;

    private Integer gender;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    private Integer integral;

    private Double balance;

    private Integer addressid;

    private Integer saleafter;

    private Integer orderid;

    private Integer userrole;

    private String headimage;

    private String spare1;

    private String spare2;

    @Override
    public String toString() {
        return "Buyer{" +
                "userid=" + userid +
                ", phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                ", vip=" + vip +
                ", gender=" + gender +
                ", birthday=" + birthday +
                ", integral=" + integral +
                ", balance=" + balance +
                ", addressid=" + addressid +
                ", saleafter=" + saleafter +
                ", orderid=" + orderid +
                ", userrole=" + userrole +
                ", headimage='" + headimage + '\'' +
                ", spare1='" + spare1 + '\'' +
                ", spare2='" + spare2 + '\'' +
                '}';
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Integer getVip() {
        return vip;
    }

    public void setVip(Integer vip) {
        this.vip = vip;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public Integer getAddressid() {
        return addressid;
    }

    public void setAddressid(Integer addressid) {
        this.addressid = addressid;
    }

    public Integer getSaleafter() {
        return saleafter;
    }

    public void setSaleafter(Integer saleafter) {
        this.saleafter = saleafter;
    }

    public Integer getOrderid() {
        return orderid;
    }

    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }

    public Integer getUserrole() {
        return userrole;
    }

    public void setUserrole(Integer userrole) {
        this.userrole = userrole;
    }

    public String getHeadimage() {
        return headimage;
    }

    public void setHeadimage(String headimage) {
        this.headimage = headimage == null ? null : headimage.trim();
    }

    public String getSpare1() {
        return spare1;
    }

    public void setSpare1(String spare1) {
        this.spare1 = spare1 == null ? null : spare1.trim();
    }

    public String getSpare2() {
        return spare2;
    }

    public void setSpare2(String spare2) {
        this.spare2 = spare2 == null ? null : spare2.trim();
    }
}